from enum import Enum


class Player(Enum):
    NONE = 0
    BLACK = 1
    WHITE = 2

    def other(self):
        if self == Player.BLACK:
            return Player.WHITE
        elif self == Player.WHITE:
            return Player.BLACK
        return Player.NONE

    def __str__(self):
        if self == Player.BLACK:
            return "黑棋"
        elif self == Player.WHITE:
            return "白棋"
        return ""